]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
popupMenu: Never add ornament padding to image items
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 1 Aug 2023 16:13:10 +0000 (19:13 +0300)
committerMarge Bot <marge-bot@gnome.org>
Tue, 1 Aug 2023 17:32:53 +0000 (17:32 +0000)
PopupImageMenuItem moves the ornament after the label, so we don't
need the additional padding that accounts for visible ornaments
for regular items.

Spotted by Sebastian Keller.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2843>

js/ui/popupMenu.js

index 9033c9044db0415fffed2c90ff53aae0169f7b80..7b876ed24658e7d0da8ced1d29ed74a0b645e8f7 100644 (file)
@@ -474,6 +474,11 @@ class PopupImageMenuItem extends PopupBaseMenuItem {
         else
             this._icon.icon_name = icon;
     }
+
+    _updateOrnamentStyle() {
+        // we move the ornament after the label, so we don't need
+        // additional padding regardless of ornament visibility
+    }
 });
 
 var PopupMenuBase = class extends Signals.EventEmitter {